{% extends '::base.html.twig' %}

{% block title %}{% trans %}Forgot Your Password{% endtrans %}{% endblock %}

{% block body %}
<div class="row-fluid whiteWrapper">
    <form class="form-horizontal passwordForm" action="{{ path('user_forgot_password') }}" method="post">
        <fieldset>
            <legend>{% trans %}Forget Your Password{% endtrans %}</legend>
            <hr class="smallHr" />

            {% if error %}
            <div class="alert-error alert">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {% trans %}The supplied email was not found{% endtrans %}.
            </div>
            {% endif %}

            {% if form_errors(form) %}
            <div class="alert-error alert">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ form_errors(form) }}
            </div>
            {% endif %}

            {% if form_errors(form.email) %}
            <div class="alert-error alert">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ form_errors(form.email) }}
            </div>
            {% endif %}

            <div class="control-group">
                <label class="control-label">{% trans %}Email{% endtrans %}</label>
                <div class="controls">
                    <div class="input-append">
                        {{ form_widget(form.email, {'attr': {'class': 'input-xlarge', 'placeholder': 'Ex. abc@domain.com' | trans} }) }}
                        <button class="btn blue" type="submit">{% trans %}Send{% endtrans %}</button>
                        {{ form_errors(form.email) }}
                    </div>

                    <span class="help-block">
                        {% trans %}Enter your email address to receive a reset password link{% endtrans %}.
                    </span>
                </div>
            </div>
        </fieldset>
        <div class="alert">
            <strong>{% trans %}Notice{% endtrans %}</strong>
            <p>
                {% trans %}Sometimes emails sent from us may be filtered mistakenly as spam and may be found in your Junk/Bulk mail folder{% endtrans %}.
            </p>
        </div>
        {{ form_rest(form) }}
    </form>
</div>
{% endblock %}